<!--
 * @Date: 2024-12-06 15:58:37
 * @Author: LiSong
 * @LastEditors: LiSong
 * @LastEditTime: 2024-12-09 14:09:46
 * @Description: 
-->
<template>
  <HpDesigner :layouts="layouts" @publish="handlePublish"/>
</template>

<script setup>
import HpDesigner from '@hp/design/index.js'

import { ElMessage } from 'element-plus';
import { useHomePageStore } from "@hp/stores/store-homepage.js"

const { layouts } = useHomePageStore()

const handlePublish = (layouts) => {
  useHomePageStore().setLayouts(layouts)
  ElMessage.success('发布成功！')
}

</script>

<style lang="scss" scoped>

</style>